# -*- coding: utf-8 -*-
"""
Created on Tue Apr 23 20:12:01 2019

梯度：连续值之间的变化率，即斜率

@author: yaoyu
"""


import numpy as np

a = np.random.randint(0, 20, (5))
print(a)
print(np.gradient(a))